﻿using MapWindow.Data;
using MapWindow.Map;
namespace StandaloneTest
{
    public class FunctionTest : MapFunction
    {
        private MapPointLayer _mpl;
        

        public FunctionTest(IMap map):base(map)
        {
            
        }

      

        protected override void OnMouseUp(GeoMouseArgs e)
        {
           if(_mpl == null)
           {
               _mpl = new MapPointLayer();
               e.Map.MapFrame.DrawingLayers.Add(_mpl);
           }
           _mpl.DataSet.Features.Add(e.GeographicLocation);
           e.Map.Refresh();
        }

    }
}
